<div class="modal-dialog">
<form class="form-horizontal form-validate form-modal" method="post" action="{:url('info')}">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal">&times;</button>
            <h4 class="modal-title">{$row['id'] > 0?'编辑核销员':'添加核销员'}</h4>
        </div>
        <div class="modal-body">
            <div class="form-group">
                <label class="control-label">关联门店：</label>
                <div class="col-sm-9 must">
                    <select name="store_id" style="width:150px;">
                        {volist name="store_list" id="opt" }
                        <option value="{$opt.id}" {$row.store_id==$opt['id']?'selected':''}>{$opt.store_name}</option>
                        {/volist}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label">关联用户：</label>
                <div class="col-sm-9 ">
                    {if condition="$row.uid"}
                    <div style="margin-bottom: 10px;">当前关联用户：{$row.uid}-{$row.staff_mobile}-{$row.staff_name}</div>
                    {/if}
                    <input type="text" class="input-small" id="user_keyword" value="" style="width:140px !important;" /> <a href="javascript:;" class="m-xs" title="查看"  onclick="searchuser('user_keyword','select_user');"><i class="fa fa-search text-muted"></i></a>
                    <select id="select_user" name="select_user"  style="width: 180px; " >
                        <option value="0">选择用户</option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="control-label">是否启用：</label>
                <div class="col-sm-2controls">
                    <label class="radio-inline">
                        <input name="status" value="1" {$row['status']==1?'checked':''} class="js_undertake " type="radio" >
                        是
                    </label>
                    <label class="radio-inline">
                        <input name="status" value="0" {$row['status']==0?'checked':''} class="js_undertake" type="radio" >否
                    </label>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
        <div class="modal-footer">
            <input  type="hidden" name="id" value="{$row.id|intval}"/>
            <button type="submit" class="btn btn-primary" data-loading-text="保存中..." disabled>保存</button>
            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        </div>
    </div>
    </form>
</div>
<script>

</script>
